package com.biomatch.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 用户
 */
@Data
@TableName(value = "ls_userinfo")
public class UserInfo {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id; //ID

    @TableField(value = "usrcod")
    private String usrcod; //用户编号

    @TableField(value = "lgnnam")
    private String lgnnam; //登陆名称

    @TableField(value = "lgnpwd")
    private String lgnpwd; //密码

    @TableField(value = "usrnam")
    private String usrnam; //姓名

    @TableField(value = "sextyp")
    private String sextyp; //性别

    @TableField(value = "emptyp")
    private String emptyp; //职工类别

    @TableField(value = "delflg")
    private Boolean delflg; //停用FLAG

    @TableField(value = "updtim")
    private Date updtim; //更新时间

    @TableField(exist = false)
    private Role role;

    @TableField(exist = false)
    private List<String> permissions;

    @TableField(exist = false)
    private List<Fingerprint> fingerprintList;
}
